package com.pinda.feign;

import com.pinda.base.entity.PdFleet;
import com.pinda.base.entity.PdTruckDriver;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(value = "base-service", url = "http://localhost:2003")
public interface PdDriverFenClient {
    @GetMapping("/pd-truck-driver/selectDriver/{userId}")
    PdTruckDriver selectDriver(@PathVariable("userId") String userId);

    @GetMapping("/pd_fleet/selectFleet/{fleetId}")
    PdFleet selectFleet(@PathVariable("fleetId") String fleetId);
}
